<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/



/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/

Route::group(['middleware' => ['web']], function () {
    Route::group(['namespace' => 'Index'], function(){
        //Route::get("/","IndexController@first");
        Route::get('/loginAD','IndexController@loginAD');//登录器公告

        Route::get("/","IndexController@newIndex");
        Route::get("/index{id}.html","IndexController@index");  //各层首页
        Route::get("/info{id}.html","IndexController@adsInfo"); //公告详情
        Route::get("/list{id}.html","IndexController@adList"); //公告列表

        Route::post("/addGameJPG","HuController@addGameJPG");//玩家申请上传游戏截图
        Route::get("/gameJPGList.html","HuController@gameJPGList");//游戏截图列表
        Route::get("/gameJPGsInfo/{game_jpg_id}.html","HuController@gameJPGInfo");//游戏截图详情

        Route::post("/addUserJPG","HuController@addUserJPG");//玩家申请上传靓照
        Route::get("/userJPGList.html","HuController@userJPGList");//靓照列表
        Route::get("/userJPGsInfo/{user_jpg_id}.html","HuController@userJPGInfo");//靓照详情

        Route::post("/addEXP","HuController@addEXP");//申请分享心得
        Route::get("/userExpList.html","HuController@userExpList");//心得列表
        Route::get("/userExpInfo/{id}.html","HuController@userExpInfo"); //心得详情

        Route::post("/addArticle","HuController@addArticle");//申请分享文章
        Route::get("/userArticleList.html","HuController@userArticleList");//文章列表
        Route::get("/userArticleInfo/{id}.html","HuController@userArticleInfo");//文章详情

        Route::get("/gameGLList.html","ChangController@gameGLList");//游戏攻略列表
        Route::get("/gameGLInfo/{id}.html","ChangController@gameGLInfo");//游戏攻略详情

        Route::get("/gameMPList.html","ChangController@gameMPList");//游戏攻略列表
        Route::get("/gameMPInfo/{id}.html","ChangController@gameMPInfo");//游戏攻略详情

        Route::get("/gameJNList.html","ChangController@gameJNList");//游戏技能列表
        Route::get("/gameJNInfo/{id}.html","ChangController@gameJNInfo");//游戏技能详情

        Route::get("/mpActionList.html","HUController@mpActionList");//门派活动列表
        Route::get("/mpActionInfo/{id}.html","HuController@mpActionInfo");//游戏技能详情

        Route::get("/bgStoryList.html","XinController@bgStoryList");//背景故事列表
        Route::get("/bgStoryInfo/{id}.html","XinController@bgStoryInfo");//背景故事详情

        Route::get("/baseDoList.html","XinController@baseDoList");//基本操作列表
        Route::get("/baseDoInfo/{id}.html","XinController@baseDoInfo");//基本操作详情

        Route::get("/gameKeyList.html","XinController@gameKeyList");//游戏指令列表
        Route::get("/gameKeyInfo/{id}.html","XinController@gameKeyInfo");//游戏指令详情

        Route::get("/newAskList.html","XinController@newAskList");//新手问答列表
        Route::get("/newAskInfo/{id}.html","XinController@newAskInfo");//新手问答详情

        Route::get("/speedWarningList.html","XinController@speedWarningList");//快手说明列表
        Route::get("/speedWarningInfo/{id}.html","XinController@speedWarningInfo");//快手说明详情

        Route::get("/gameMapList.html","YouController@gameMapList");//游戏地图列表
        Route::get("/gameMapInfo/{id}.html","YouController@gameMapInfo");//游戏地图详情

        Route::get("/gameMapList.html","YouController@gameMapList");//游戏地图列表
        Route::get("/gameMapInfo/{id}.html","YouController@gameMapInfo");//游戏地图详情
    });

    Route::get("/adminLogin","Admin\AdminController@adminLogin");//管理员登录
    Route::post("/_adminLogin","Admin\AdminController@_adminLogin");//执行管理员登录
    Route::get("/adminLogout","Admin\AdminController@adminLogout");//管理员退出登录

    Route::group(['middleware' => ['LoginAdminCheck']], function () {
        Route::group(['namespace' => 'Admin'],function(){
            //公告
            Route::get("/adminHome","AdminController@adminHome");//公告管理
            Route::post("/addAD","AdminController@addAD");//发布公告
            Route::get("/adInfo/{ad_id}","AdminController@adInfo");//公告详情
            Route::get("/delAd","AdminController@delAd"); //删除公告
            Route::get('/upToLogin/{id}','AdminController@upToLogin');//推举公告到登录器
            Route::get('/downToLogin/{id}','AdminController@downToLogin');//推举公告到登录器

            Route::get("/searchMPAction","AdminController@searchMPAction");//门派活动
            Route::post("/addMPAction","AdminController@addMPAction");//添加门派活动
            Route::get("/mpActionInfo/{id}","AdminController@mpActionInfo");//门派活动详情
            Route::get("/delMPAction","AdminController@delMPAction");//删除门派活动

            Route::get("/checkGameJPG","CheckController@checkGameJPG");//游戏截图
            Route::get("/gameJPGInfo/{game_jpg_id}","CheckController@gameJPGInfo");//游戏截图详情
            Route::post("/changeGameJPG","CheckController@changeGameJPG");//游戏截图审核通过
            Route::post("/delGameJPG","CheckController@delGameJPG");//游戏截图审核未通过or删除

            Route::get("/checkUserJPG","CheckController@checkUserJPG");//靓照
            Route::get("/userJPGInfo/{user_jpg_id}","CheckController@userJPGInfo");//靓照详情
            Route::post("/changeUserJPG","CheckController@changeUserJPG");//靓照审核通过
            Route::post("/delUserJPG","CheckController@delUserJPG");//靓照审核未通过or删除

            Route::get("/checkUserEXP","CheckController@checkUserEXP");//心得
            Route::get("/userEXPInfo/{user_jpg_id}","CheckController@userEXPInfo");//心得详情
            Route::post("/changeUserEXP","CheckController@changeUserEXP");//心得审核通过
            Route::post("/delUserEXP","CheckController@delUserEXP");//心得审核未通过or删除

            Route::get("/checkUserArticle","CheckController@checkUserArticle");//文章
            Route::get("/userArticleInfo/{id}","CheckController@userArticleInfo");//文章详情
            Route::post("/changeUserArticle","CheckController@changeUserArticle");//文章审核通过
            Route::post("/delUserArticle","CheckController@delUserArticle");//文章审核未通过or删除

            Route::get("/searchGameGL","ChangController@searchGameGL");//游戏攻略
            Route::post("/addGameGL","ChangController@addGameGL");//发布游戏攻略
            Route::get("/gameGLInfo/{id}","ChangController@gameGLInfo");//攻略详情
            Route::get("/delGameGL","ChangController@delGameGL");//删除攻略

            Route::get("/searchGameMP","ChangController@searchGameMP");//游戏门派
            Route::post("/addGameMP","ChangController@addGameMP");//发布游戏门派
            Route::get("/gameMPInfo/{id}","ChangController@gameMPInfo");//门派详情
            Route::get("/delGameMP","ChangController@delGameMP");//删除门派

            Route::get("/searchGameJN","ChangController@searchGameJN");//游戏技能
            Route::post("/addGameJN","ChangController@addGameJN");//发布游戏技能
            Route::get("/gameJNInfo/{id}","ChangController@gameJNInfo");//技能详情
            Route::get("/delGameJN","ChangController@delGameJN");//删除技能

            Route::get("/searchBGStory","XinController@searchBGStory");//背景故事
            Route::post("/addBGStory","XinController@addBGStory");//发布背景故事
            Route::get("/bgStoryInfo/{id}","XinController@bgStoryInfo");//背景故事详情
            Route::get("/delBGStory","XinController@delBGStory");//删除背景故事

            Route::get("/searchBaseDo","XinController@searchBaseDo");//基本操作
            Route::post("/addBaseDo","XinController@addBaseDo");//发布基本操作
            Route::get("/baseDoInfo/{id}","XinController@baseDoInfo");//基本操作详情
            Route::get("/delBaseDo","XinController@delBaseDo");//删除基本操作

            Route::get("/searchGameKey","XinController@searchGameKey");//游戏指令
            Route::post("/addGameKey","XinController@addGameKey");//发布游戏指令
            Route::get("/gameKeyInfo/{id}","XinController@gameKeyInfo");//游戏指令详情
            Route::get("/delGameKey","XinController@delGameKey");//删除游戏指令

            Route::get("/searchNewAsk","XinController@searchNewAsk");//新手问答
            Route::post("/addNewAsk","XinController@addNewAsk");//发布新手问答
            Route::get("/newAskInfo/{id}","XinController@newAskInfo");//新手问答详情
            Route::get("/delNewAsk","XinController@delNewAsk");//删除新手问答

            Route::get("/searchSpeedWarning","XinController@searchSpeedWarning");//快手说明
            Route::post("/addSpeedWarning","XinController@addSpeedWarning");//发布快手说明
            Route::get("/speedWarningInfo/{id}","XinController@speedWarningInfo");//快手说明详情
            Route::get("/delSpeedWarning","XinController@delSpeedWarning");//删除新手问答

            Route::get("/searchGameMap","YouController@searchGameMap");//游戏地图
            Route::post("/addGameMap","YouController@addGameMap");//发布游戏地图
            Route::get("/gameMapInfo/{id}","YouController@gameMapInfo");//游戏地图详情
            Route::get("/delGameMap","YouController@delGameMap");//删除游戏地图

            Route::get("/searchGameBoss","YouController@searchGameBoss");//游戏怪物
            Route::post("/addGameBoss","YouController@addGameBoss");//发布游戏怪物
            Route::get("/gameBossInfo/{id}","YouController@gameBossInfo");//游戏怪物详情
            Route::get("/delGameBoss","YouController@delGameBoss");//删除游戏怪物

            Route::get("/searchGameNPC","YouController@searchGameNPC");//游戏NPC
            Route::post("/addGameNPC","YouController@addGameNPC");//发布游戏NPC
            Route::get("/gameNPCInfo/{id}","YouController@gameNPCInfo");//游戏NPC详情
            Route::get("/delGameNPC","YouController@delGameNPC");//删除游戏NPC

            Route::get("/searchGameSkill","YouController@searchGameSkill");//游戏武功
            Route::post("/addGameSkill","YouController@addGameSkill");//发布游戏武功
            Route::get("/gameSkillInfo/{id}","YouController@gameSkillInfo");//游戏武功详情
            Route::get("/delGameSkill","YouController@delGameSkill");//删除游戏武功

            Route::get("/searchGameZB","YouController@searchGameZB");//游戏装备
            Route::post("/addGameZB","YouController@addGameZB");//发布游戏装备
            Route::get("/gameZBInfo/{id}","YouController@gameZBInfo");//游戏装备详情
            Route::get("/delGameZB","YouController@delGameZB");//删除游戏装备
        });
    });
});
